package com.shinewind.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderDto implements Serializable {
    @ApiModelProperty(value = "商户订单号")
    @NotNull(message = "商户订单号不能为null")
    private String out_trade_no;
    @ApiModelProperty(value = "订单名称")
    @NotNull(message = "订单名称不能为null")
    private String subject;
    @ApiModelProperty(value = "付款金额")
    @NotNull(message = "付款金额不能为null")
    private String total_amount;
    @ApiModelProperty(value = "商品描述")
    @NotNull(message = "商品描述不能为null")
    private String body;
    @ApiModelProperty(value = "订单超时时间")
    @NotNull(message = "订单超时时间不能为null")
    private String timeout_express;
    @ApiModelProperty(value = "回传参数",notes = "用户传递收货地址")
    @NotNull(message = "回传参数不能为null")
    private String passback_params;
    private String product_code;
}
